package com.ruoyi.qiushi.domain.deviceData;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 血压设备数据对象 qiushi_device_blood_pressure
 *
 * @author ruoyi
 * @date 2024-01-10
 */
public class QiushiDeviceBloodPressure extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    private Long sourceId;

    /** 所属平台 */
    @Excel(name = "所属平台")
    private String terid;

    /** 所属机构 */
    @Excel(name = "所属机构")
    private String mecid;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String eid;

    /** 床位号 */
    @Excel(name = "床位号")
    private String uid;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 患者年龄 */
    @Excel(name = "患者年龄")
    private String age;

    /** 患者性别 1男 2女 */
    @Excel(name = "患者性别 1男 2女")
    private String sex;

    /** 收缩压 */
    @Excel(name = "收缩压")
    private String shrink;

    /** 舒张压 */
    @Excel(name = "舒张压")
    private String diastole;

    /** 脉率 */
    @Excel(name = "脉率")
    private String heartRate;

    /** 血压采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "血压采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date takeTime;

    /** 结论 */
    @Excel(name = "结论")
    private String result;

    /** 0正常 1删除 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public void setTerid(String terid)
    {
        this.terid = terid;
    }

    public String getTerid()
    {
        return terid;
    }
    public void setMecid(String mecid)
    {
        this.mecid = mecid;
    }

    public String getMecid()
    {
        return mecid;
    }
    public void setEid(String eid)
    {
        this.eid = eid;
    }

    public String getEid()
    {
        return eid;
    }
    public void setUid(String uid)
    {
        this.uid = uid;
    }

    public String getUid()
    {
        return uid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAge(String age)
    {
        this.age = age;
    }

    public String getAge()
    {
        return age;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setShrink(String shrink)
    {
        this.shrink = shrink;
    }

    public String getShrink()
    {
        return shrink;
    }
    public void setDiastole(String diastole)
    {
        this.diastole = diastole;
    }

    public String getDiastole()
    {
        return diastole;
    }
    public void setHeartRate(String heartRate)
    {
        this.heartRate = heartRate;
    }

    public String getHeartRate()
    {
        return heartRate;
    }
    public void setTakeTime(Date takeTime)
    {
        this.takeTime = takeTime;
    }

    public Date getTakeTime()
    {
        return takeTime;
    }
    public void setResult(String result)
    {
        this.result = result;
    }

    public String getResult()
    {
        return result;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("terid", getTerid())
                .append("mecid", getMecid())
                .append("eid", getEid())
                .append("uid", getUid())
                .append("name", getName())
                .append("age", getAge())
                .append("sex", getSex())
                .append("shrink", getShrink())
                .append("diastole", getDiastole())
                .append("heartRate", getHeartRate())
                .append("takeTime", getTakeTime())
                .append("result", getResult())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
